<template>
  <div class="card">
    <div class="img-box"><img :src="imgUrl" ></div>
    <div class="divider"></div>
    <div class="body">
      <div class="title">{{title}}</div>
      <div class="content">{{content}}</div>
      <CircleProcess class="buttons"></CircleProcess>
<!--      <div class="buttons">-->
<!--        <button type="button" id="good"></button>-->
<!--        <button type="button" id="collect"></button>-->
<!--        <button type="button" id="share"></button>-->
<!--      </div>-->
    </div>
  </div>
</template>

<script>
import CircleProcess from "@/components/CircleProcess";
export default {
  props: {
    imgUrl:{
      type: String,
      default: require('../assets/default2.jpg'),
    },
    title:{
      type: String,
      default: 'TITLE'
    },
    content:{
      type: String,
      default: 'A basic card component with an image, title, description, and call to action. By default, the image is on top and full-width, but inside larger containers the image is positioned on the left with the rest of the content beside it.'
    }
  },
  components: {
    CircleProcess
  }
}
</script>

<style scoped>
html,body{
  margin: 0;
  height: 100%;
}
#app {
  height: 100%;
}
@media screen and (min-width: 751px){
  .card {
    display: flex;
    border: 1px solid #e6e6e6;
    padding: 0.7rem;
  }
  .body {
    display: flex;
    flex-direction: column;
    margin: 1rem;
  }
  .img-box {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    padding: 0.2rem;
    border: 1px solid #e6e6e6;
    box-sizing:border-box;
  }
}
@media screen and (max-width: 750px){
  .card {
    flex-direction: column;
    display: flex;
    border: 1px solid #e6e6e6;
    padding: 0.7rem;
  }
  .body {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
  }
  .divider{
    display: none;
  }
  .img-box {
    width: 100%;
    padding: 0.2rem;
    border: 1px solid #e6e6e6;
    box-sizing:border-box;
  }
}
.card img{
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.divider {
  margin-left: 1rem;
  width: 1px;
  background-color: #e6e6e6;
}
.title {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}
.content {
  margin-bottom: auto;
}
.buttons {
  margin-top: 1rem;
  margin-left: -5px;
}
</style>
